/* eslint-env node */
/* eslint no-console:0 */
const path = require('path');
// const webpack = require('webpack');
const merge = require('webpack-merge');
const baseWebpackConfig = require('./webpack.base.conf');

// const basePath = path.resolve(__dirname, '../');
const publicPath = baseWebpackConfig.output.path + path.sep;

module.exports = merge(baseWebpackConfig, {
	mode: 'none', // "production" | "development" | "none"
	// Chosen mode tells webpack to use its built-in optimizations accordingly.

	output: {
		// options related to how webpack emits results

		publicPath: publicPath // string
		// the url to the output directory resolved relative to the HTML page

		// libraryTarget: "commonjs2"
	},

	module: {},

	devtool: 'module-eval-inline-source-map', // enum
	// enhance debugging by adding meta info for the browser devtools
	// source-map most detailed at the expense of build speed.
	// cheap-source-map

	// devServer: {
	// 	contentBase: path.join(__dirname), // boolean | string | array, static file location
	// 	hot: true // hot module replacement. Depends on HotModuleReplacementPlugin
	// 	// ...
	// },

	plugins: [
		// new webpack.optimize.CommonsChunkPlugin({
		// 	name: 'common' // Specify the common bundle's name.
		// })
		// new webpack.HotModuleReplacementPlugin({
		// 	// Options...
		// })
	]
	// list of additional plugins

	/* Advanced configuration (click to show) */
});
